package FrameN;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import net.miginfocom.swing.MigLayout;

import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;

import danhmuc.DonViTinh;

public class FNDonViTinh extends JDialog {

	private JPanel contentPane;
	private JTextField textField;
	private JTextField textField_1;
	private DonViTinh donvitinh; 
	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					FNDonViTinh frame = new FNDonViTinh(null);
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}


	/**
	 * Create the frame.
	 */
	public FNDonViTinh(DonViTinh donvitinh) {
		setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE);
		setBounds(100, 100, 277, 128);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(new MigLayout("", "[][grow]", "[][][]"));
		
		JLabel lblTnnV = new JLabel("Tên Đơn Vị Tính: ");
		contentPane.add(lblTnnV, "cell 0 0,alignx trailing");
		
		textField = new JTextField();
		contentPane.add(textField, "cell 1 0,growx");
		textField.setColumns(15);
		
		JLabel lblMnV = new JLabel("Mã Đơn Vị: ");
		contentPane.add(lblMnV, "cell 0 1,alignx trailing");
		
		textField_1 = new JTextField();
		contentPane.add(textField_1, "cell 1 1,growx");
		textField_1.setColumns(15);
		
		JButton btnNewButton = new JButton("OK");
		contentPane.add(btnNewButton, "flowx,cell 1 2,alignx right");
		
		JButton btnNewButton_1 = new JButton("CanCel");
		contentPane.add(btnNewButton_1, "cell 1 2");
	}

}
